from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import render,redirect

# Create your views here.
from django.views import View

class UserView(View):

    def get(self,request):
        if request.method == "GET":
            username = request.GET.get("username")
        if username!=None:
            return render(request,'user.html',{"username":username,})
        else:
            return redirect('/login/')


class PostView(View):

    def get(self,request):

        return render(request,'post.html')